from django.shortcuts import render
from rest_framework import viewsets
from department import models,departser
from rest_framework.views import APIView
from rest_framework.response import Response



# Create your views here.

class DepartmentCateViewSet(viewsets.ModelViewSet):
  queryset = models.DepartmentCateModel.objects.all()
  serializer_class = departser.DepartmentCateSerializer

class DepartmentViewSet(viewsets.ModelViewSet):
  queryset = models.DepartmentModel.objects.all()
  serializer_class = departser.DepartmentSerializer





